//
//  MTMessageHeadView.m
//  met
//
//  Created by 李晓俊 on 2019/5/15.
//  Copyright © 2019 李晓俊. All rights reserved.
//

#import "MTMessageHeadView.h"

@implementation MTMessageHeadView
{
    
    CGRect myframe;
    
}
- (MTMessageHeadView *)initWithFrame:(CGRect)frame

{
    self = [super initWithFrame:frame];
    if (self) {
        NSArray *nibs=[[NSBundle mainBundle]loadNibNamed:@"MTMessageHeadView" owner:nil options:nil];
        self=[nibs objectAtIndex:0];
        myframe = frame;
    }
    return self;
}
-(void)drawRect:(CGRect)rect

{
    self.frame=myframe;//关键点在这里
}

@end
